# This setup is a bit out of the ordinary for a staging system. As the openqa
# scheduler needs up-to-date information from the wiki and koji, it doesn't
# work well as a proper staging host.
#
# We decided to keep it a pseudo-staging host that will get new versions of
# openqa first and will be a staging host for most intensive purposes but from
# a firewall rule POV, it will be a staging-friendly production host
#
# it should still be using the stg proxies and the external hostname will still
# be stg.fedoraproject.org

# this is to enable nested virt, which we need for disk image creation
virt_install_command: "{{ virt_install_command_one_nic }} --cpu=host-passthrough,+vmx"

external_hostname: openqa.stg.fedoraproject.org

openqa_static_uid: 601

openqa_hostname: localhost
openqa_email: adamwill@fedoraproject.org
openqa_nickname: adamwill
openqa_fullname: Adam Williamson
openqa_userid: http://adamwill.id.fedoraproject.org/

openqa_dbname: openqa-stg
openqa_dbhost: db-qa01.qa.fedoraproject.org
openqa_dbuser: openqastg
openqa_dbpassword: "{{ stg_openqa_dbpassword }}"
openqa_assetsize: 400

openqa_key: "{{ stg_openqa_apikey }}"
openqa_secret: "{{ stg_openqa_apisecret }}"

wikitcms_password: "{{ stg_wikitcms_password }}"

checkcompose_url: "https://{{ external_hostname }}"

deployment_type: stg
freezes: false

# http and NFS
tcp_ports: [80, 2049]

# These people get told when something goes wrong.
fedmsg_error_recipients:
- adamwill@fedoraproject.org
- tflink@fedoraproject.org
- pschindl@fedoraproject.org

# These are consumed by a task in roles/fedmsg/base/main.yml
fedmsg_certs:
- service: shell
  owner: root
  group: sysadmin
  can_send:
  - logger.log
- service: openqa
  owner: root
  group: geekotest
  can_send:
  - openqa.comment.create
  - openqa.comment.update
  - openqa.comment.delete
  - openqa.job.create
  - openqa.job.delete
  - openqa.job.cancel
  - openqa.job.duplicate
  - openqa.job.restart
  - openqa.jobs.restart
  - openqa.job.update.result
  - openqa.job.done

# we need this to log with fedmsg-logger
fedmsg_active: True

# makes sure it sends stg not prod fedmsgs
fedmsg_env: stg
